﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.Models.Admin
{
    public class UserModel
    {
        public int ID { get; set; }
        public string ADM_UNIT_ID { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string ConfirmPassword { get; set; }
        public string FullName { get; set; }
        public string RegDate { get; set; }
        public string Email { get; set; }
        public int IsActive { get; set; }
        public int Status { get; set; }
        public int LoginTime { get; set; }
        public int RecordCount { get; set; }
        public List<MenuModel> ListMenu { get; set; }
        public List<RoleModel> ListRole { get; set; }
        public List<GroupModel> ListGroup { get; set; }
        public string AppCode { get; set; }
        public int AppId { get; set; }
        public string GroupId {get; set; }
        public string GroupCode { get; set; }
        public int CountDay { get; set; }

        #region Check error
        public long CurrentTime { get; set; }
        public int ErrorCode { get; set; }
        public string ErrorMessage { get; set; }
        #endregion

        #region Field list from DB
        public const string Field_ID = "Id";
        public const string Field_UserName = "Username";
        public const string Field_Password = "Password";
        public const string Field_FullName = "Fullname";
        public const string Field_RegDate = "RegDate";
        public const string Field_Email = "Email";
        public const string Field_IsActive = "IsActive";        
        public const string Field_ADM_UNIT_ID = "ADM_UNIT_ID";
        public const string Field_Status = "Status";
        public const string Field_RecordCount = "RecordCount";
        public const string Field_AppId = "AppId";
        public const string Field_CountDay = "CountDay";
        #endregion
    }

    public class UserInListGroup
    {
        public string UserName { get; set; }
        public string[] ListGroup { get; set; }
        public string AppCode { get; set; }
    }
}
